-- GENERATED SPELL FOR [Sister of Pleasure] --


function spell0_22964(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(41378,pUnit)
pUnit:RegisterEvent('Sorts_22964', 2000, 1)
end

function spell1_22964(pUnit, Event) --@Holy Nova,Self--
pUnit:FullCastSpellOnTarget(41380,pUnit)
pUnit:RegisterEvent('Sorts_22964', 573, 1)
end

function spell2_22964(pUnit, Event) --@Shared Bonds,n/a--
pUnit:FullCastSpellOnTarget(41362,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22964', 611, 1)
end

function spell3_22964(pUnit, Event) --@Shell of Life,Self--
pUnit:FullCastSpellOnTarget(41381,pUnit)
pUnit:RegisterEvent('Sorts_22964', 16000, 1)
end

function Sorts_22964(pUnit, Event)
local choix_sorts_22964 = math.random(0, 3)
if choix_sorts_22964 == 0 then
pUnit:RegisterEvent('spell0_22964', 1, 1)
end
if choix_sorts_22964 == 1 then
pUnit:RegisterEvent('spell1_22964', 1, 1)
end
if choix_sorts_22964 == 2 then
pUnit:RegisterEvent('spell2_22964', 1, 1)
end
if choix_sorts_22964 == 3 then
pUnit:RegisterEvent('spell3_22964', 1, 1)
end
end

function mob22964_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22964', math.random(1500, 3000), 1)
end

function mob22964_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22964_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22964_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22964, 1, 'mob22964_Action')
RegisterUnitEvent(22964, 2, 'mob22964_Leave')
RegisterUnitEvent(22964, 3, 'mob22964_Kill')
RegisterUnitEvent(22964, 4, 'mob22964_Die')
